package com.zuojia.textviewbanner;

import android.content.Context;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Log;
import android.widget.TextView;

/**
 * Created by wujianxing on 16/9/18.
 */

public class AutoHorizontalScrollTextView extends TextView {


    public AutoHorizontalScrollTextView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initView();
    }
    public AutoHorizontalScrollTextView(Context context, AttributeSet attrs) {
        this(context, attrs,0);
    }

    private void initView() {
        setEllipsize(TextUtils.TruncateAt.MARQUEE);
        setTextSize(16);
        setFocusableInTouchMode(true);

    }
}
